/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const streetRouter = {
  path: '/street',
  component: Layout,
  redirect: '/street/streetlist',
  alwaysShow: true, // will always show the root menu
  name: 'streetManagement',
  meta: {
    title: '街道管理',
    icon: 'lock',
  },
  children: [{
    path: 'streetlist',
    component: () =>
      import('@/views/street/streetlist/index'),
    name: 'streetManagement',
    meta: {
      title: '街道列表',
    }
  },{
    path: 'streetlist/create',
    component: () =>
      import('@/views/street/streetlist/create'),
    name: 'createStreet',
    meta: {
      title: '添加街道',
    }
  },{
    path: 'streetlist/edit/:id(\\d+)',
    component: () =>
      import('@/views/street/streetlist/edit'),
    name: 'editStreet',
    meta: {
      title: '编辑街道',
    }
  },
  ]
}

export default streetRouter
